<?php

namespace App\Repositories\Student;

use App\Models\Student\Student;
use App\Presenters\Student\StudentPresenter;
use App\Validators\Student\StudentValidator;
use Prettus\Repository\Contracts\closure;
use Prettus\Repository\Contracts\ValidatorException;
use Prettus\Repository\Criteria\RequestCriteria;
use App\Repositories\BaseRepository;
/**
 * Class StudentRepositoryEloquent
 * @package namespace App\Repositories\Student;
 */
class StudentRepositoryEloquent extends BaseRepository implements StudentRepository
{
    /**
     * Specify Model class name
     *
     * @return string
     */
    public function model()
    {
        return Student::class;
    }

    /**
     * Specify Validator class name
     *
     * @return mixed
     */
    public function validator()
    {

        return StudentValidator::class;
    }


    /**
     * Boot up the repository, pushing criteria
     */
    public function boot()
    {
        $this->pushCriteria(app(RequestCriteria::class));
    }

    public function presenter(){
        return StudentPresenter::class;
    }
}
